package com.gopay.common.domain.mcc;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * @GopayMccLog.java
 * @author wanggang
 * @2015-6-25 下午3:51:23  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "GOPAY_MCC_LOG")
public class GopayMccLog extends BaseEntity{
    
    /**
     * 
     */
    private static final long serialVersionUID = 6683170328963467056L;

    @Id
    @Column(name = "SQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "GOPAY_MCC_LOG_SEQ")
    @SequenceGenerator(name = "GOPAY_MCC_LOG_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "GOPAY_MCC_LOG_SEQ")
    private Long sq;

    @Column(name = "CUST_ID", length = 10)
    private String custId;

    @Column(name = "GOPAY_MCC_PROVINCE_OLD", length = 4)
    private String gopayMccProvinceOld;

    @Column(name = "GOPAY_MCC_PROVINCE_NEW", length = 4)
    private String gopayMccProvinceNew;

    @Column(name = "GOPAY_MCC_CODE_OLD", length = 4)
    private String gopayMccCodeOld;

    @Column(name = "GOPAY_MCC_CODE_NEW", length = 4)
    private String gopayMccCodeNew;

    @Column(name = "GOPAY_MCC_NUM_OLD", length = 4)
    private String gopayMccNumOld;

    @Column(name = "GOPAY_MCC_NUM_NEW", length = 4)
    private String gopayMccNumNew;

    @Column(name = "OPER_ID", length = 6)
    private String operId;
    
    /**
     * 创建时间
     */
    @Column(name = "CREATED_TS", nullable = false)
    private Date createdTs;

    /**
     * 最后更新时间
     */
    @Column(name = "LAST_UPD_TS", nullable = false)
    private Date lastUpdTs;

    public Long getSq() {
        return sq;
    }

    public void setSq(Long sq) {
        this.sq = sq;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getGopayMccProvinceOld() {
        return gopayMccProvinceOld;
    }

    public void setGopayMccProvinceOld(String gopayMccProvinceOld) {
        this.gopayMccProvinceOld = gopayMccProvinceOld;
    }

    public String getGopayMccProvinceNew() {
        return gopayMccProvinceNew;
    }

    public void setGopayMccProvinceNew(String gopayMccProvinceNew) {
        this.gopayMccProvinceNew = gopayMccProvinceNew;
    }

    public String getGopayMccCodeOld() {
        return gopayMccCodeOld;
    }

    public void setGopayMccCodeOld(String gopayMccCodeOld) {
        this.gopayMccCodeOld = gopayMccCodeOld;
    }

    public String getGopayMccCodeNew() {
        return gopayMccCodeNew;
    }

    public void setGopayMccCodeNew(String gopayMccCodeNew) {
        this.gopayMccCodeNew = gopayMccCodeNew;
    }

    public String getGopayMccNumOld() {
        return gopayMccNumOld;
    }

    public void setGopayMccNumOld(String gopayMccNumOld) {
        this.gopayMccNumOld = gopayMccNumOld;
    }

    public String getGopayMccNumNew() {
        return gopayMccNumNew;
    }

    public void setGopayMccNumNew(String gopayMccNumNew) {
        this.gopayMccNumNew = gopayMccNumNew;
    }

    public String getOperId() {
        return operId;
    }

    public void setOperId(String operId) {
        this.operId = operId;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }
    
}
